package com.hylu.springcloud.service;

import com.hylu.springcloud.entity.Book;
import org.springframework.data.elasticsearch.core.query.UpdateResponse;

public interface BookInterface {
    /**
     * 新增
     *
     * @param book
     * @return
     */
    Book saveBook(Book book);

    /**
     * 修改
     *
     * @param id
     * @param title
     * @return
     */
    void updateBookTitle(String id, String title);


}
